﻿using System;
using System.Collections.Generic;
using System.Text;
using DotNetCore.CAP;
using ImLxp.Infrastructure.Core;
using MediatR;
using Microsoft.EntityFrameworkCore;

namespace Blog.Infrastructure
{
    public class BlogContext : EFContext
    {
        public BlogContext(DbContextOptions options, IMediator mediator, ICapPublisher capBus) : base(options, mediator, capBus)
        {
        }

        #region DbSet



        #endregion

        protected override void OnModelCreating(ModelBuilder modelBuilder)
        {
            modelBuilder.ApplyConfigurationsFromAssembly(typeof(BlogContext).Assembly);
            base.OnModelCreating(modelBuilder);
        }
    }
}
